package org.cnbi.utils.xml.support;



/**
 * 自定义接口
 * 仿struts2 的 actionSupport方式。
 * 在接口中定义常用变量，然后实现这个接口
 * @author liugenpeng
 *
 */
public abstract interface XmlParserSupport {
	
	/**
	 * 常用节点标签名
	 */
//	final String ITEM = "item" ;
	final String QC_ITEMS = "qcItems";
	final String ASSIST_ITEMS= "assistItems";
	final String FOUMULAS= "formulas";
	final String DB= "db";
	final String USER_DEFINED= "userDefined";
	final String ASSISTS= "assists";//
	final String INDUSTRY_PARAMS= "industryParams";
	final String DATAS="datas";
	final String CHART="chart";
	/**
	 * 常用属性名
	 */
	final String ID  = "id" ;
	final String SCODE  = "scode" ;
	final String SNAME  = "sname" ;
	final String EXP = "exp";
	final String PARAMS = "params";
	final String FORMULA = "formula";
	final String TIP = "tip";//
	final String LEVAL = "level";//level  replaceVar
	final String VALUE = "value";//level
	final String REPLACEVAR = "replaceVar";//replaceVar
	final String INSERTINDEX = "insertIndex";//insertIndex
	final String VARPREFIX = "varPrefix";
	/**
	 * 常用节点id
	 */

	final String NAVID  = "nav" ;
	final String CONTENTID  = "content" ;
	final String FOOTERID  = "footer" ;
	final String PREOPER = "style";
	final String MODELID  = "model" ;
	final String CONTROLLERID  = "controller" ;
	/**
	 * 常用节点标签名
	 */
	final String NAV  = "Nav" ;
	final String VIEW  = "view" ;
	final String ITEM = "Item" ;
	final String PANEL = "Panel";
	final String SHEET= "sheet";
	final String REGION= "Region";
	final String FOOTER= "Footer";
	final String TOOL= "Tool";
	final String TITLE= "title";
	final String ITEMS= "items";
	/**
	 * 常用属性名
	 */
	final String LABELATTR= "label";
	final String ICONATTR = "icon";
	final String CLASSATTR = "class";
	final String STYLEATTR = "style";
	final String POSITIONATTR = "position";
	final String WEIGHTATTR = "weight";
	final String TOOLSTOOGGLEATTR = "toolsToggle";
	final String CONTENTATTR = "content";
	final String WIDTHATTR = "width";
	final String HEIGHTATTR = "height";
	final String CHARTTYPEATTR = " chartType";
	final String TEXTATTR ="text";
	final String TITLEATTR = "title";
	final String CODEATTR = "code";
	final String MODEATTR= "mode";
	final String NAME= "name";//"col"
	final String COL= "col";
	final String ROW= "row";//
	final String FORMULAR= "formula";//formula
	final String TYPE= "type";//mul-table
	final String MUL_TABLE= "mul-table";//mul-table
	final String SQL= "sql";//mul-table
	final String ITEM_1= "item";//mul-table
	final String DEFAULTDATATYPE = "defaultDataType";//默认数据类型
	final String DEFINED = "defined";//默认数据类型 default
	final String DEFAULT = "default";//默认数据类型   random
	final String RANDOM = "random";//默认数据类型   attributes
	final String ATTR = "attributes";//默认数据类型   attributes
	/**
	 * 包名
	 */
	final String PACKAGENAME = "com.cnbi.bean.view.layout";
	/**
	 * 解析xml文件
	 * @return
	 * @throws Exception 
	 */
	public Object execute() throws Exception ;
}
